package com.qding.park.adapter.report.controller.v1.form;

import javax.validation.Valid;

import org.hibernate.validator.constraints.NotEmpty;

import com.qding.park.adapter.report.valid.EventType;

/**
 * @ClassName ParkEventSyncForm
 * @Description TODO(事件表单)
 * @author LeiYang
 * @Date 2017年4月27日 上午11:27:05
 * @version 1.0.0
 */
public class ParkEventSyncForm {
    
    @NotEmpty(message="supplyId不能为空")
    private String supplyId;
    
    @EventType
    private String eventType;
    
    @Valid
    private EventBody eventBody;

    
    public String getSupplyId() {
        return supplyId;
    }

    
    public void setSupplyId(String supplyId) {
        this.supplyId = supplyId;
    }

    
    public String getEventType() {
        return eventType;
    }

    
    public void setEventType(String eventType) {
        this.eventType = eventType;
    }

    
    public EventBody getEventBody() {
        return eventBody;
    }

    
    public void setEventBody(EventBody eventBody) {
        this.eventBody = eventBody;
    }


    @Override
    public String toString() {
        return "ParkEventSyncForm [supplyId=" + supplyId + ", eventType=" + eventType + ", eventBody=" + eventBody
                + "]";
    }
    
    

    
}
